cmake_minimum_required(VERSION 3.10.0)

project(RayTracingInOneWeek)

set(CMAKE_CXX_STANDARD 17)

add_subdirectory(third_party/glm)

include_directories(third_party/glm)
include_directories(third_party/stb)

add_library(ray_tracing
  include/Bitmap.hpp
  include/Ray.hpp
  include/Hittable.hpp
  include/Sphere.hpp
  include/Camera.hpp
  include/Material.hpp
  src/Bitmap.cc
  src/Ray.cc
  src/Sphere.cc
  src/Hittable.cc
  src/Camera.cc
  src/Material.cc
)

target_include_directories(ray_tracing
  PUBLIC
  ${CMAKE_CURRENT_LIST_DIR}/include
)

add_subdirectory(example)
